package com.jiangjiang.eshop.commodity.domain;

import com.baomidou.mybatisplus.annotation.*;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.Date;

/**
 * @ClassName GoodsSkuEntity
 * @Description TODO
 * @Author jhw
 * @Date 2021/8/2 17:58
 * @Version 1.0
 **/
@Data
@AllArgsConstructor
@NoArgsConstructor
@Builder
@TableName("commodity_goods_sku")
public class GoodsSkuEntity {
    /**
     * id
     */
    @TableId(value = "id",type = IdType.AUTO)
    private Long id;
    /**
     * 商品id
     */
    @TableField("goods_id")
    private Long goodsId;
    /**
     * 商品sku编号
     */
    @TableField("sku_code")
    private String skuCode;
    /**
     * 商品sku的采购价格
     */
    @TableField("purchase_price")
    private Double purchasePrice;
    /**
     * 商品sku的销售价格
     */
    @TableField("sale_price")
    private Double salePrice;
    /**
     * 商品sku的促销价格
     */
    @TableField("discount_price")
    private Double discountPrice;
    /**
     * 销售属性
     */
    @TableField("sale_properties")
    private String saleProperties;
    /**
     * 创建时间
     */
    @TableField(value = "gmt_create",fill = FieldFill.INSERT)
    private Date gmtCreate;
    /**
     * 修改时间
     */
    @TableField(value = "gmt_modified",fill = FieldFill.INSERT_UPDATE)
    private Date gmtModified;
}
